[staging] stdenv: gcc_11 → gcc_12 #206907
Conversation
|
Been using these changes for a while now:
Haven't noticed any issues |
1653a94 to
32c6130
Compare
|
Jobset: https://hydra.nixos.org/jobset/nixpkgs/pr-206907-gcc12 For now just x86_64-linux with low priority. It's likely to advance a lot while |
|
By looking at this the upgrade might go relatively easily: https://gcc.gnu.org/gcc-12/porting_to.html |
32c6130 to
0ae2235
Compare
|
Status: Currently about ~1,000 breakages total on x86_64-linux, pushed some extra patches for packages and will keep at it for a bit while but this is almost ready for review. The 2 biggest issues:
|
trofi
left a comment
There was a problem hiding this comment.
LGTM.
Wow, so many -Wno-error= annotations! Thank you!
I feel uneasy about the use after free ones. Dx |
Chances are those are false positives: https://gcc.gnu.org/PR104069. Worth a separate look as well, but it should not block a compiler update I'd say. |
|
It's my understanding that some people still have bad issues with the new --- a/pkgs/servers/x11/xorg/overrides.nix
+++ b/pkgs/servers/x11/xorg/overrides.nix
@@ -878,6 +878,8 @@ self: super:
"--disable-tls"
];
+ NIX_CFLAGS_COMPILE = [ "-Wno-error=array-bounds" ];
+
postInstall = ''
rm -fr $out/share/X11/xkb/compiled # otherwise X will try to write in it
( # assert() keeps runtime reference xorgserver-dev in xf86-video-intel and others
|
|
Dropped/decoupled xorg-server commit, I must have had a brainfart I thought there was a harder to fix error with gcc12 for xorgserver |
This comment was marked as resolved.
This comment was marked as resolved.
Co-authored-by: Weijia Wang <9713184+wegank@users.noreply.github.com>
|
Would you mind rebasing this to latest |
|
It's intentionally based on recent master to avoid mixing up with (potential) regressions from |
|
Doing so would also cause a mass rebuild on hydra. Not sure I should do that resource-wise. |
|
Right, the rebuild on Hydra would seem wasteful to me at this point. |
|
Bisect says cb57273 |
Description of changes
This changes the default gcc version from gcc11 to gcc12
Things done
Depends on #206805Pending:
https://hydra.nixos.org/jobset/nixpkgs/pr-206907-gcc12
Tested with GNOME/GDM NixOS (about 4k-6k builds?)
Checklist:
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes